#pragma once

class EDBSystem : public IDBSystem
{
public:
					EDBSystem 		( const char *cfg_name );
	virtual			~EDBSystem		( void );
	virtual void	Update			( void );

protected:

			void	ParseQuery		( INetSocket *socket, const char *query );

	IConfig 	*cfg;
	IConsole	*con;

	IDBStorage	*storage;
	INetSystem	*net;

};

class EDBFileStorage : public IDBStorage
{
public:
							EDBFileStorage 			( const char *path );
		virtual				~EDBFileStorage 		( void );
		virtual const char	*Read					( uint id );
		virtual const char	*Write					( uint id, const char *user );
protected:
	string name;

};
